<template>
  <div class="zq_uclubcard">

    <header>
      <div class="header-left">
        <div class="header-icon"></div>
        <div class="header-text">会员优惠券</div>
      </div>
      <div class="member_header_right_btn">
        <i class="btn_sprite" @click="showMember()"></i> 会员权益
      </div>
    </header>

    <template v-for="item in memberItem">
      <Member :key="item.id" :itemData="item"></Member>
    </template>

  </div>
</template>

<script>
import Member from './components/member.vue'
export default {
  name: 'uclubcard_',
  components: {
    Member
  },
  data () {
    return {
      memberItem: [
        {
          id: 1,
          leftTitle: '会员优惠券',
          money: '10',
          dec_num: '无门槛使用',
          time: 7,
          rightTitle: '使用说明',
          useItem: [
            '1、可充值好搜服网站上发布广告的游戏',
            '2、无金额使用门槛',
            '3、不支持打金服充值'
          ],
          indate: '2023-04-10至2023-04-17'
        },
        {
          id: 2,
          leftTitle: '会员优惠券',
          money: '13',
          dec_num: '无门槛使用',
          time: 4,
          rightTitle: '使用说明',
          useItem: [
            '1、可充值好搜服网站上发布广告的游戏',
            '2、无金额使用门槛',
            '3、不支持打金服充值'
          ],
          indate: '2023-04-10至2023-04-17'
        }
      ]
    }
  },
  methods: {
    // 会员权益按钮点击事件
    showMember () {
      console.log(1)
    }
  }
}
</script>

<style lang='less' scoped>
.zq_uclubcard {
  background-color: #fff;
  header {
    height: 45px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    text-align: center;
    line-height: 45px;
    color: rgba(0, 0, 0, 1);
    border-bottom: 1px solid rgba(244, 244, 244, 1);
    background-color: #fff;
    .header-left {
      display: flex;
    }
    .header-icon {
      width: 4px;
      height: 16px;
      background: rgba(230, 0, 18, 1);
      display: inline-block;
      vertical-align: -3px;
      margin-right: 4px;
      margin-left: 10px;
      margin-top: 15px;
    }
    .header-text {
      font-size: 16px;
      font-weight: 400;
    }
    .member_header_right_btn {
      margin: 7px 19px 0 20px;
      display: flex;
      justify-content: center;
      align-items: center;
      width: 84px;
      height: 28px;
      background: linear-gradient(90deg, #ffe9d0 2%, #fcc989 100%);
      cursor: pointer;
      color: #8f5a18;
      .btn_sprite {
        background-image: url("./images/hyk-btn.png");
        background-size: 294px 196px;
      }
    }
  }
}
</style>
